kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 21:36:22 +0000 (22:36 +0100)]
Fix gcc4 build.
Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 19:17:26 +0000 (20:17 +0100)]
Clarify lazy FPU management in VMX domains.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 18:43:45 +0000 (19:43 +0100)]
Fix segment-register dumping in show_registers().
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 17:25:10 +0000 (18:25 +0100)]
More upgrades of Xen code to linux-2.6.16-rc2.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 15:23:43 +0000 (16:23 +0100)]
Upgrade arch/x86/cpu/* files to their equivalents in
linux-2.6.16-rc2/arch/i386/kernel/cpu/*.
Also include kernel taint tracking and include that
information, and Xen release info, in our crash dumps.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 16:41:23 +0000 (17:41 +0100)]
Return real error code from Xen /dev/mem, not EAGAIN.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 15:47:04 +0000 (16:47 +0100)]
Update defconfigs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 14:58:50 +0000 (15:58 +0100)]
Fix HVM event handling some more.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 13:54:27 +0000 (14:54 +0100)]
Update x86_32 defconfigs for ISA_DMA_API config change.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 11:45:40 +0000 (12:45 +0100)]
Configure ISA_DMA drivers on xen/i386. Otherwise drivers
that also work with PCI devices won't get compiled.
(For example, BusLogic SCSI).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 11:16:16 +0000 (12:16 +0100)]
Absolutely must not return to HVM guest context until
synchronous I/O emulation is completed.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 09:23:26 +0000 (10:23 +0100)]
Fix error exit path in __gnttab_map_grant_ref() to
put_domain() and hence avoid zombie domains.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 09:19:14 +0000 (10:19 +0100)]
Clean up vmxassist/setup.c. It is no longer necessary to
switch to an alternate page table before entering the
real-mode emulator.
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 11 Feb 2006 12:06:49 +0000 (13:06 +0100)]
Rework hvm_wait_io() -- now tries to be a polite user of
event channels by re-setting the selector and master
pending flags when it exits. Should make for better
behaviour when there are others using the event channels.
This needs some testing to be sure it doesn't break
anything or trigger latent bugs.
Signed-off-by: Keir Fraser <keir@xensource.com>
smh22@firebug.cl.cam.ac.uk [Fri, 10 Feb 2006 16:57:13 +0000 (17:57 +0100)]
Reset sp on vcpu_prepare; this avoids 'leaking' stack after repeated
save/restore/migrate iterations.
Should fix various crashes observed with save/restore/migrate of multi
VCPU guests.
Signed-off-by: Steven Hand <steven@xensource.com>
mjw@wray-m-3.hpl.hp.com [Fri, 10 Feb 2006 16:14:56 +0000 (17:14 +0100)]
Fix exporting vnet config to xenstore.
Signed-off-by: Mike Wray <mike.wray@hp.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 10 Feb 2006 11:35:19 +0000 (12:35 +0100)]
Avoid misleading message about 'not using swiotlb' on x86/64
domain0. Provide a temporary glue between our swiotlb
implementation and x86/64's dma_ops dynamic dma-mapping
infrastructure.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 02:23:36 +0000 (03:23 +0100)]
Cope with -1 eventchn_fd -- this occurs when using --no-domain-init (a
command line debugging option).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 01:09:19 +0000 (02:09 +0100)]
Parse --port argument to migration.
Patch by Andres Lagar Cavilla <andreslc@cs.toronto.edu>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
adam@ipcoast.com [Fri, 10 Feb 2006 01:05:26 +0000 (02:05 +0100)]
Fix xm-test network tests to work with hvm support enabled.
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 01:04:24 +0000 (02:04 +0100)]
The attached patch adds 'xm vtpm-list <DomId>' functionality.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 01:03:24 +0000 (02:03 +0100)]
Rather than require config changes if you aren't using eth0, use the
default network device available no matter the name. It can still
be configured if you want a specific network device.
Patch by Bill Nottingham <notting@redhat.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 23:16:53 +0000 (00:16 +0100)]
Check the hypercall number in the privcmd hypercall ioctl.
We check it is a member of a small set of permitted hypercalls.
Fix libxenstat to not use multicalls (not permitted, and not
need for efficiency in libxenstat).
Based on an original patch by Chris Wright.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 23:00:17 +0000 (00:00 +0100)]
Remove Xen-specific param.h: has only cosmetic change from mainline.
-#define CLOCKS_PER_SEC (USER_HZ) /* like times() */
+# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 22:15:21 +0000 (23:15 +0100)]
pci-nommu-xen.c is identical to its mainline counterpart so remove it.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 19:25:33 +0000 (20:25 +0100)]
Remove defunct compile option CONFIG_XEN_SHADOW_MODE.
It has been superceded by run-time flag
XENFEAT_auto_translated_physmap.
This patch changes behaviour slightly:
1. set_pmd/set_pgd/set_pud always use mmu_ops, even when
XENFEAT_writable_page_tables is available. Unclear whether
we want to add a test to avoid this.
2. xen_l1_entry_update always uses mmu_op. Again, could gate
this on XENFEAT_writable_page_tables.
3. We always pin/unpin pagetables. Could gate this on a
new XENFEAT flag.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 17:35:15 +0000 (18:35 +0100)]
Delete old 'shortcut' function __shadow_status() and
rename the core function ___shadow_status() to take its
place.
The 'fast path quick test' was ridiculously bloated and
didn't work for PGT_fl1_shadow pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 16:42:51 +0000 (17:42 +0100)]
Don't specify VT console structure at all when specifying
!console_use_vt. The dummy_con just confuses the VT
implementation and you get no console output without manually
specifying a console= boot parameter.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 15:12:48 +0000 (16:12 +0100)]
Add a vnet chapter to the user manual.
Signed-off-by: Mike Wray <mike.wray@hp.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 15:12:11 +0000 (16:12 +0100)]
Update vnets to support UDP encapsulation, multicast forwarding
and optionally running in user-space.
Signed-off-by: Mike Wray <mike.wray@hp.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 15:09:00 +0000 (16:09 +0100)]
Do_softirq is invoked at the path of ia64_leave_kernel instead of
being invoking in function irq_exit, which is aligned with XEN/X86 and
avoids __enter_schedule being reentered.
Signed-off-by Anthony Xu <anthony.xu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 15:03:17 +0000 (16:03 +0100)]
Make a VTI domain boot again.
Signed-off-by Anthony Xu <anthony.xu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 14:57:52 +0000 (15:57 +0100)]
Remove xennull_con. Use dummy_con.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 13:54:58 +0000 (13:54 +0000)]
Fix typos in Kconfig files.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 13:52:40 +0000 (14:52 +0100)]
Fix CPU hotplug.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 11:17:35 +0000 (12:17 +0100)]
More details on ordering and safety of the Xen timer API.
Most functions are safe to call after a timer structure
has been initialised to all zeroes, as long as they are
*never* called concurrently with init_timer().
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 11:10:28 +0000 (12:10 +0100)]
Fix CPU-migration of VMX domains.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
smh22@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 10:32:17 +0000 (11:32 +0100)]
Quiet down wbinvd warning for verbose/debug builds of xen.
Signed-off-by: Steven Hand <steven@xensource.com>
rread@ubuntu.eng.hq.xensource.com [Thu, 9 Feb 2006 02:20:51 +0000 (19:20 -0700)]
Fix the backward compatibility support for using 'vcpus' in the image section of the domain sexp.
Signed-off-by: Robert Read <robert@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 23:27:52 +0000 (00:27 +0100)]
Fix x86_64 CPU hotplug by paravirtualizing the play_dead() function.
Also fix the i386 play_dead() function to call idle_task_exit(),
which ensures the CPU exits while running the init_mm. Otherwise
other tasks may get stuck.
Signed-off-by: Ryan Grimm <grimm@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 23:22:38 +0000 (00:22 +0100)]
The NAT checksum fixes in patches/linux-2.6.16-rc2/net-csum.patch do
not work when port numbers are modified (bug 447).
tcp_manip_pkt()/udp_manip_pkt() modify the protocol checksum to
reflect the changes to ip addresses and port numbers. When
dev_queue_xmit() finds a message with proto_csum_blank set, it
calculates a new tcp/udp checksum that includes both the modified port
numbers and the modified protocol checksum field... so the change to
the port numbers affects the protocol checksum twice.
This patch modifies net-csum.patch to remove the checksum mangling for
port numbers in tcp_manip_pkt()/udp_manip_pkt()
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 23:13:46 +0000 (00:13 +0100)]
Attached patch for svm will enable a tlb flush for each vmrun.
Setting the tbl_control flag to 1 in the vmcb, causes a complete tlb
flush on this core. We have seen issues (blue screens) when utilizing
ASID granularity with WinxpSP1 running on cores>0. we have found that
flushing the TLBs each vmrun alleviates winxpsp1 crashes. We have also
sometimes seen a substantial performance improvement(!) when flushing
each vmrun, which was completely unexpected. We are continuing to
investigate root cause, but for the moment, we would like to just flush
each vmrun. Digging around in the SPT code might be necessary here also.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 16:27:32 +0000 (17:27 +0100)]
Fix Xen timer interface to allow migration of timers
among CPUs (using new migrate_timer() call). Fix the
locking protocol in light of this addition.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 16:26:20 +0000 (17:26 +0100)]
Prevent a guest from specifying its own domain id when
making a 'foreign' page mapping. It must use DOMID_SELF.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 16:25:14 +0000 (17:25 +0100)]
Add 'dom0_max_vcpus' Xen boot parameter.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 16:24:29 +0000 (17:24 +0100)]
Fix i386 CPU hotplug, and CPU hotplug when maxcpus= kernel boot option is used.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 15:58:01 +0000 (15:58 +0000)]
Add m2p translation to read_cr3 on x86_64.
From: Jan Beulich <JBeulich@novell.com>
From: Nakajima, Jun <jun.nakajima@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 15:45:11 +0000 (15:45 +0000)]
x86-64 linux: remove dead code
Remove left-over pieces from native interrupt handling.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 15:43:01 +0000 (15:43 +0000)]
x86-64 linux: CONFIG_ACPI_BOOT doesn't exist anymore
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 15:38:38 +0000 (15:38 +0000)]
linux: don't export evtchn_do_upcall()
Remove the export of evtchn_do_upcall().
Given the constraints on the use of this function (should run at least
with irqcount adjusted properly, preferrably also on irq stack), it
doesn't seem reasonable for this function to be exported.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 15:36:49 +0000 (15:36 +0000)]
x86-64 linux: properly exit idle mode from evtchn_do_upcall()
Add a call to exit_idle() when evtchn_do_upcall() calls
evtchn_device_upcall() instead of do_IRQ().
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 15:31:38 +0000 (15:31 +0000)]
x86-64 linux: call evtchn_do_upcall on irq stack and adjust irqcount
Especially in the light of the recent no-idle-tick preparations in
native x86-64 it is important that exit_idle() has proper state
available. For this reason, the processor's irqcount must be adjusted
within upcalls, and for consistency and similarity with native code
this call should also execute on the processor's irq stack.
At once the patch slightly simplifies the pre-existing code by copying
%rdi into %rsp instead of adding 8 to %rsp, and by using %rdi instead
of %rsp (avoiding a needless resource dependency) for storing the event
mask.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 12:03:52 +0000 (12:03 +0000)]
Use /dev/kmem to map dom0 xenstore page instead of abusing the foreign mapping interface.
Change /proc/xen/xsd_mfn to /proc/xen/xsd_kva containing the kernel
virtual address of the dom0 xenstore page. Update xenstored to use
/proc/xen/xsd_kva.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 8 Feb 2006 10:10:52 +0000 (11:10 +0100)]
Rationalise initialisation of cpu_possible_map.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 23:30:50 +0000 (00:30 +0100)]
/sbin/udev no longer exists in upstream udev, so use udevinfo for
version info.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
john.levon@sun.com [Tue, 7 Feb 2006 20:46:13 +0000 (20:46 +0000)]
Fix pygrub to handle timeout of -1 (wait forever).
Only call use_default_colors() if it's available.
Signed-off-by: John Levon <john.levon@sun.com>
cl349@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 20:38:44 +0000 (20:38 +0000)]
Clean up the TPM stack a bit.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 18:16:11 +0000 (19:16 +0100)]
Since USER_PTRS_PER_PGD depends on TASK_SIZE and thus on the current
thread, it must not be used in code that can be called in the context
switch path (otherwise the 32-bitness of the outgoing task is used
here rather then the 32-bitness of the incoming one, possibly
resulting in large parts of the page tables not getting converted to
read-only).
Signed-off-by: Jan Beulich <JBeulich@novell.com>
cl349@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 15:24:04 +0000 (15:24 +0000)]
Fix ia32 support.
From: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 14:56:39 +0000 (15:56 +0100)]
Apply stricter checking to RDMSR/WRMSR emulations.
In particular, MSRs that domain0 may write to must now
be 'white listed': default policy is to ignore the write.
This will prevent SYSCALL/SYSENTER instructions from
crashign Xen, by preventing the target MSRs from being
overwritten by domain 0.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 13:57:40 +0000 (13:57 +0000)]
Fix x86_64 SMP support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 11:59:27 +0000 (12:59 +0100)]
Clarify dual licensing of gnttab.[ch] files in Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 11:54:09 +0000 (11:54 +0000)]
Fix x86_64 guest console support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 7 Feb 2006 00:02:49 +0000 (01:02 +0100)]
Remove the PHYSDEV_ACCESS configure option from Linux.
It saves very little space, no distro will disable it
in their unified build, and it's rather a pain to
implement it properly.
I've left the PRIVILEGED_GUEST option for now, as it
provides some indication of where our platform-bringup
hacks are in our Linux tree. We may wish to exclude
those from upstream merge in the first instance.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 22:33:58 +0000 (23:33 +0100)]
Remove CONFIG_VMX and CONFIG_SVM compile options. Support
will always be compiled into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 22:25:31 +0000 (23:25 +0100)]
Allows x86_32 PAE Xen to run VMX domains (2-level guest page
tables). To support >4GB machines, we use PAE mode for the shadow page
tables; the guests think they are using 2-level page tables.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
This should not break SVM, however the SVM code will need some small
changes to enable support for non-pae guests on pae hosts.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 18:02:36 +0000 (18:02 +0000)]
Update ia64 to 2.6.16-rc2.
This boots dom0 and domU on an rx2600.
Revert several files that were accidentally reverted by the merge-ups
(that weren't fixed by cset 8743). Those are included here with the
2.6.15 patch re-applied as well as changes between 2.6.15 and 2.6.16-rc2.
Specifically, these are pal.h, processor.h and system.h.
This patch also reverts changes to include/asm-ia64/hypercall.h and
hypervisor.h from cset 8742.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
cl349@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 16:48:34 +0000 (16:48 +0000)]
Fix context copy code in NMI handler.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 16:04:45 +0000 (17:04 +0100)]
Fix hypercall_table size in x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 15:55:41 +0000 (16:55 +0100)]
A few trivial cleanups from the HVM merge.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 15:51:06 +0000 (16:51 +0100)]
No C1-Clock Ramp disabling on AMD processors. The tiny drift
caused by the ramping changes should not cause TSCs to become
noticeably out of sync on Xen systems.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 15:41:26 +0000 (15:41 +0000)]
Fix "kernel direct mapping tables" printk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 15:32:23 +0000 (16:32 +0100)]
Clean up -g in CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 15:26:29 +0000 (15:26 +0000)]
Fill hypercall_page so that its VA space doesn't get used for code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Mon, 6 Feb 2006 13:52:45 +0000 (14:52 +0100)]
Temporary fix to include PTY support in domU builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 4 Feb 2006 09:58:28 +0000 (10:58 +0100)]
Update the TPM hotplug scripts to determine the reason of a
device creation (create/resume).
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 19:30:54 +0000 (20:30 +0100)]
Fix show_registers() on x86/64. Get rid of
GUEST_CONTEXT() macro and the eflags==0 hack to detect
an HVM-guest stack frame. Various cleanups and fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 18:45:14 +0000 (18:45 +0000)]
Fix hypercall_page location on x86_64.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 18:24:28 +0000 (18:24 +0000)]
Update patches for Linux 2.6.16-rc2.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc1-git4/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc2/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc1-git4/net-csum.patch => patches/linux-2.6.16-rc2/net-csum.patch
rename : patches/linux-2.6.16-rc1-git4/pmd-shared.patch => patches/linux-2.6.16-rc2/pmd-shared.patch
rename : patches/linux-2.6.16-rc1-git4/smp-alts.patch => patches/linux-2.6.16-rc2/smp-alts.patch
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 18:10:40 +0000 (18:10 +0000)]
Update x86_32 -xen config file for PAE builds.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 17:49:27 +0000 (17:49 +0000)]
Update to Linux 2.6.16-rc2.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 14:24:52 +0000 (14:24 +0000)]
Update x86_32 -xen config file for PAE builds.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 11:47:38 +0000 (12:47 +0100)]
Fix up the new non-paging direct_map shadow pagetable mode
for SVM. Rename a vmx_ function in HVM-generic code to
hvm_.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 11:02:30 +0000 (12:02 +0100)]
Build the phys_to_machine_mapping array in Xen rather than
reusing the 1:1 page table built by the builder, and it also establishes
the 1:1 direct mapping at runtime a la shadow page tables. Since the
builder constructs the full 1:1 direct mapping (but <4GB), the current
implementation wastes memory but cannot support guests with >=4GB
memory (even for x64-64).
This is also required for HVM support on the PAE host. That patch
should be sent soon.
For SVM, I think the svm code needs changes. Please look at the changes
to vmx.c and vmcs.c; should be straightforward.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 10:54:05 +0000 (11:54 +0100)]
I have previously posted a patch with changes to the xenbus for being
able to detect the reason why a frontend is created, which can be either
due to domain creation or a restore. The attached patch now puts this
functionality into XenD and allows driver implementations in Xend to
read the state and see whether a domain is currently being resumed or
created and write this value into the xenstore for hotplug scripts to
read it. The state of a domain being resumed is set when a
XendDomainInfo object is created and reset at the end of the restore
function.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 10:51:39 +0000 (11:51 +0100)]
Get ia64 working again on xen-unstable after cset 8736.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
[
I manually applied a failed chunk and removed hard tabs
from the file while I was editing it.
Signed-off-by: Keir Fraser <keir@xensource.com>
]
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 10:00:15 +0000 (10:00 +0000)]
One more fix to the buildsystem ($^ is not $<).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 09:54:04 +0000 (09:54 +0000)]
Fix another corner case in the build system.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 09:37:34 +0000 (09:37 +0000)]
Update ignores for .bz2 patches in top level directory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
stekloff@elm3b216.beaverton.ibm.com [Fri, 3 Feb 2006 09:34:03 +0000 (09:34 +0000)]
Make "make disk.img" not require building the entire buildroot if initrd
already exists. Changed dependency for disk.img to "existing" and added
a line to make existing false.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
cl349@firebug.cl.cam.ac.uk [Fri, 3 Feb 2006 09:31:28 +0000 (09:31 +0000)]
Converge the TPM drivers in the Xen repository
with those coming from the 2.6.15 kernel. Some files can now be
taken from 2.6.15 directly and can therefore be removed.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
cl349@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 21:21:47 +0000 (21:21 +0000)]
Fix buildsystem.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 19:21:18 +0000 (19:21 +0000)]
Revert ia64 changes from previous checkin.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 19:16:38 +0000 (19:16 +0000)]
Update to Linux 2.6.16-rc1-git4.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.15/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc1-git4/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.15/net-csum.patch => patches/linux-2.6.16-rc1-git4/net-csum.patch
rename : patches/linux-2.6.15/pmd-shared.patch => patches/linux-2.6.16-rc1-git4/pmd-shared.patch
rename : patches/linux-2.6.15/smp-alts.patch => patches/linux-2.6.16-rc1-git4/smp-alts.patch
jrb44@plym.cl.cam.ac.uk [Thu, 2 Feb 2006 18:15:22 +0000 (19:15 +0100)]
There is a known "xm console" issue related with VMX. When "serial" is
enabled in script and no once uses "xm console" to read the console,
VMX boting will hang due to the buffer is full.
I added a "select" before "write". If it could not be written,
unix_write will Return immediately and it will not block the VMX
booting. With this fix, we can make VMX's serial enable by default.
Signed-off-by: Yu Ping <ping.y.yu@intel.com>
Modified to patch xmexample.hvm. Put through xenrt on a VMX box.
Signed-off-by: James Bulpin <james@xensource.com>
cl349@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 17:16:00 +0000 (17:16 +0000)]
Update patches for linux 2.6.15.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.14/i386-mach-io-check-nmi.patch => patches/linux-2.6.15/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.14/net-csum.patch => patches/linux-2.6.15/net-csum.patch
rename : patches/linux-2.6.14/pmd-shared.patch => patches/linux-2.6.15/pmd-shared.patch
rename : patches/linux-2.6.14/smp-alts.patch => patches/linux-2.6.15/smp-alts.patch
kaf24@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 14:10:27 +0000 (15:10 +0100)]
Blacklist memory-mapped APIC-register pages in the domain0
iomem capability list.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 14:09:39 +0000 (15:09 +0100)]
Add argument-checking assertions to rangeset interfaces.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 13:57:18 +0000 (13:57 +0000)]
Fix and cleanup how we build i386/x86_64 swiotlb.o.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 2 Feb 2006 11:18:28 +0000 (12:18 +0100)]
Fix some more pfn/mfn/gmfn/gpfn inconsistencies. Fix some direct
uses of max_page variable to use the mfn_valid() predicate.
Signed-off-by: Keir Fraser <keir@xensource.com>